<?php
$caption = BUtils::T('login_lbl');
$this->pageTitle = $caption;
?>
<div class="row-fluid">
	<div class="span12">
		<div class="login-container">
			<div class="space-6" style="margin-top:48px;"></div>
			<div class="center">
				<h1>
					<span class="blue">Yamii</span>
					<span class="blue">for Business</span>
				</h1>
				<h4 class="red"><?php echo BUtils::T('yb_brief'); ?></h4>
			</div>
			<div class="space-6"></div>
<div class="row-fluid">
	<div class="box_white span12">
		<div class="biz-form">
			<div class="margin">
				<div class="pull-right">
					<?php BHelper::HtmlLanguageButtons(); ?>
				</div>
				<h3 class="header blue lighter bigger">
					<i class="icon-coffee green"></i> <span class="green"><?php echo $caption; ?></span>
				</h3>
				<div class="clearfix"></div>
			</div>
			
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

<div class="fieldswrap">
<div class="fields">
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'email'); ?></div>
		<div class="ipt">
			<span class="input-icon input-icon-right span12">
				<?php echo $form->textField($model,'email', array('class'=>'span12')); ?>
				<i class="icon-envelope"></i>
			</span>
			<div class="clearfix"></div>
			<?php echo $form->error($model,'email'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password'); ?></div>
		<div class="ipt">
			<span class="input-icon input-icon-right span12">
				<?php echo $form->passwordField($model,'password', array('class'=>'span12')); ?>
				<i class="icon-lock"></i>
			</span>
			<div class="clearfix"></div>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="block">
		<div class="row-fluid">
		<div class="span7">
			<?php echo $form->checkBox($model, 'rememberMe', array('class'=>'form-field-checkbox', 'checked'=>true)); ?>
			<?php echo $form->label($model, 'rememberMe'); ?>
			<?php echo $form->error($model, 'rememberMe'); ?>
		</div>
		<?php echo CHtml::submitButton($caption, array('class' => 'btn btn-blue span5 pull-right')); ?>
		</div>
	</div>

	<hr />
	<div class="block">
		<div class="row-fluid">
			<?php echo CHtml::link(BUtils::T('password_find_caption_lbl'), Yii::app()->createUrl('/accounts/passwordFind'), array('class' => '')); ?>
			<?php echo CHtml::link(BUtils::T('signup_lbl'), Yii::app()->createUrl($this->id . '/register'), array('class' => 'pull-right')); ?>
		</div>
	</div>
</div><!-- end of .fields -->
</div><!-- end of .fieldswrap -->

<?php $this->endWidget(); ?>
			
		</div><!-- end of <div class="biz-form"> -->
	</div>
</div>
		</div>
	</div>
</div>